<script setup>
import { computed } from 'vue'
const props = defineProps({
  name: {
    type: String,
    default: ''
  },
  width: {
    type: String,
    default: '18'
  },
  height: {
    type: String,
    default: '18'
  },
  color: {
    type: String,
    default: '#FFF'
  },
  className: {
    type: String,
    default: ''
  }
})

const svgName = computed(() => "#icon-" + props.name)
const svgClass = computed(() => props.className)
</script>

<template>
  <svg :class="svgClass" v-bind="$attrs" :style="{ width, height, color }">
    <use :href="svgName" :fill="color"></use>
  </svg>
</template>

<style></style>